<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: pepr3d::Brush Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpepr3d_1_1_brush.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="classpepr3d_1_1_brush-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">pepr3d::Brush Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> used for painting a model while not being limited by the original triangles.  
 <a href="classpepr3d_1_1_brush.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_brush_8h_source.html">Brush.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for pepr3d::Brush:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpepr3d_1_1_brush.png" usemap="#pepr3d::Brush_map" alt=""/>
  <map id="pepr3d::Brush_map" name="pepr3d::Brush_map">
<area href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t..." alt="pepr3d::Tool" shape="rect" coords="0,0,91,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2407e6159f4d5798f62763bf53190419"><td class="memItemLeft" align="right" valign="top"><a id="a2407e6159f4d5798f62763bf53190419"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Brush</b> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;app)</td></tr>
<tr class="separator:a2407e6159f4d5798f62763bf53190419"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a5bfb009a6c666bf0cfdd6afe55812a"><td class="memItemLeft" align="right" valign="top"><a id="a8a5bfb009a6c666bf0cfdd6afe55812a"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a8a5bfb009a6c666bf0cfdd6afe55812a">getName</a> () const override</td></tr>
<tr class="memdesc:a8a5bfb009a6c666bf0cfdd6afe55812a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a short name, displayed e.g., in a side pane and tooltip. <br /></td></tr>
<tr class="separator:a8a5bfb009a6c666bf0cfdd6afe55812a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabba5037acc73348535a471b1e8a4979"><td class="memItemLeft" align="right" valign="top"><a id="aabba5037acc73348535a471b1e8a4979"></a>
virtual std::optional&lt; <a class="el" href="structpepr3d_1_1_hotkey.html">Hotkey</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#aabba5037acc73348535a471b1e8a4979">getHotkey</a> (const <a class="el" href="classpepr3d_1_1_hotkeys.html">Hotkeys</a> &amp;hotkeys) const override</td></tr>
<tr class="memdesc:aabba5037acc73348535a471b1e8a4979"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an associated <a class="el" href="structpepr3d_1_1_hotkey.html" title="A hotkey, i.e., a keycode and modifiers (Ctrl)">Hotkey</a> or an empty value. Use hotkeys.findHotkey() method. <br /></td></tr>
<tr class="separator:aabba5037acc73348535a471b1e8a4979"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19ed1135e2c4cc603f001c6af4b2f58f"><td class="memItemLeft" align="right" valign="top"><a id="a19ed1135e2c4cc603f001c6af4b2f58f"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a19ed1135e2c4cc603f001c6af4b2f58f">getIcon</a> () const override</td></tr>
<tr class="memdesc:a19ed1135e2c4cc603f001c6af4b2f58f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a UTF-8 icon from an icon font. <br /></td></tr>
<tr class="separator:a19ed1135e2c4cc603f001c6af4b2f58f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a158f2295d13bb0a11f28b88f24dd4cfd"><td class="memItemLeft" align="right" valign="top"><a id="a158f2295d13bb0a11f28b88f24dd4cfd"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a158f2295d13bb0a11f28b88f24dd4cfd">isEnabled</a> () const override</td></tr>
<tr class="memdesc:a158f2295d13bb0a11f28b88f24dd4cfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if enabled and can be selected, otherwise false. This should be a fast method, it is called every frame! <br /></td></tr>
<tr class="separator:a158f2295d13bb0a11f28b88f24dd4cfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f0e98b2326e88fa5b6a3cbeaeb9b3b1"><td class="memItemLeft" align="right" valign="top"><a id="a0f0e98b2326e88fa5b6a3cbeaeb9b3b1"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a0f0e98b2326e88fa5b6a3cbeaeb9b3b1">drawToSidePane</a> (<a class="el" href="classpepr3d_1_1_side_pane.html">SidePane</a> &amp;sidePane) override</td></tr>
<tr class="memdesc:a0f0e98b2326e88fa5b6a3cbeaeb9b3b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called every frame on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a>. Draw to <a class="el" href="classpepr3d_1_1_side_pane.html" title="Right side of the user interface that displays options of the currently selected tool.">SidePane</a> from inside this method. <br /></td></tr>
<tr class="separator:a0f0e98b2326e88fa5b6a3cbeaeb9b3b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88cb183b963bd9e4e5082fcbe50bdcd1"><td class="memItemLeft" align="right" valign="top"><a id="a88cb183b963bd9e4e5082fcbe50bdcd1"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a88cb183b963bd9e4e5082fcbe50bdcd1">drawToModelView</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:a88cb183b963bd9e4e5082fcbe50bdcd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called every frame on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a>. Draw to <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a> from inside this method. <br /></td></tr>
<tr class="separator:a88cb183b963bd9e4e5082fcbe50bdcd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9222fa4ba78b38f7b37767dfe8d26b67"><td class="memItemLeft" align="right" valign="top"><a id="a9222fa4ba78b38f7b37767dfe8d26b67"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a9222fa4ba78b38f7b37767dfe8d26b67">onModelViewMouseDown</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:a9222fa4ba78b38f7b37767dfe8d26b67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users presses a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:a9222fa4ba78b38f7b37767dfe8d26b67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf9efe6c3b3b8bed2ed8b06c68f5f0f9"><td class="memItemLeft" align="right" valign="top"><a id="acf9efe6c3b3b8bed2ed8b06c68f5f0f9"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#acf9efe6c3b3b8bed2ed8b06c68f5f0f9">onModelViewMouseUp</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:acf9efe6c3b3b8bed2ed8b06c68f5f0f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users releases a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:acf9efe6c3b3b8bed2ed8b06c68f5f0f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfe0a46814dcd751d3801a8dfacd07cb"><td class="memItemLeft" align="right" valign="top"><a id="abfe0a46814dcd751d3801a8dfacd07cb"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#abfe0a46814dcd751d3801a8dfacd07cb">onModelViewMouseDrag</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:abfe0a46814dcd751d3801a8dfacd07cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users drags a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:abfe0a46814dcd751d3801a8dfacd07cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5708ed96781b524410ac440ead73507f"><td class="memItemLeft" align="right" valign="top"><a id="a5708ed96781b524410ac440ead73507f"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a5708ed96781b524410ac440ead73507f">onModelViewMouseMove</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:a5708ed96781b524410ac440ead73507f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users moves mouse cursor over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. Note: This method is not called when the user is dragging the mouse! <br /></td></tr>
<tr class="separator:a5708ed96781b524410ac440ead73507f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae73bad242cb367db774983ba3bd9022f"><td class="memItemLeft" align="right" valign="top"><a id="ae73bad242cb367db774983ba3bd9022f"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#ae73bad242cb367db774983ba3bd9022f">onToolSelect</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:ae73bad242cb367db774983ba3bd9022f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after user selects it. Note: It may also be called when a user selects the same tool again! <br /></td></tr>
<tr class="separator:ae73bad242cb367db774983ba3bd9022f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c6e2fb6715017a34ac7269b871cbf6d"><td class="memItemLeft" align="right" valign="top"><a id="a6c6e2fb6715017a34ac7269b871cbf6d"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a6c6e2fb6715017a34ac7269b871cbf6d">onToolDeselect</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:a6c6e2fb6715017a34ac7269b871cbf6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after user selects another tool. Note: It may also be called when a user selects the same tool again! <br /></td></tr>
<tr class="separator:a6c6e2fb6715017a34ac7269b871cbf6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73a878df80b0e06bccd02015e170f770"><td class="memItemLeft" align="right" valign="top"><a id="a73a878df80b0e06bccd02015e170f770"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a73a878df80b0e06bccd02015e170f770">onNewGeometryLoaded</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView)</td></tr>
<tr class="memdesc:a73a878df80b0e06bccd02015e170f770"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on EVERY <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after a new <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a> is loaded or imported. <br /></td></tr>
<tr class="separator:a73a878df80b0e06bccd02015e170f770"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpepr3d_1_1_tool"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpepr3d_1_1_tool')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classpepr3d_1_1_tool.html">pepr3d::Tool</a></td></tr>
<tr class="memitem:a331bbb48707ea07c472b7634b02e1a18 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a331bbb48707ea07c472b7634b02e1a18"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a331bbb48707ea07c472b7634b02e1a18">getDescription</a> () const</td></tr>
<tr class="memdesc:a331bbb48707ea07c472b7634b02e1a18 inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a description, displayed e.g., in a tooltip. <br /></td></tr>
<tr class="separator:a331bbb48707ea07c472b7634b02e1a18 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aa1aae7ecebb6d2e63dfa61d08ff022ae"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#aa1aae7ecebb6d2e63dfa61d08ff022ae">onModelViewMouseWheel</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event)</td></tr>
<tr class="memdesc:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users scrolls mouse wheel over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a2420df1e8a95c66a882a923158084020"></a>
virtual std::optional&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a2420df1e8a95c66a882a923158084020">safeIntersectMesh</a> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication, const ci::Ray ray) final</td></tr>
<tr class="memdesc:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an optional intersection (an index of a triangle) of a ci::Ray with current <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>. This method is safe and if an exception occurs, an error dialog is automatically shown. <br /></td></tr>
<tr class="separator:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a2645ac765f26cbda2ab9c818a362912f"></a>
virtual std::optional&lt; <a class="el" href="structpepr3d_1_1_detailed_triangle_id.html">DetailedTriangleId</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a2645ac765f26cbda2ab9c818a362912f">safeIntersectDetailedMesh</a> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication, const ci::Ray ray) final</td></tr>
<tr class="memdesc:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an optional intersection (<a class="el" href="structpepr3d_1_1_detailed_triangle_id.html" title="Triangle ID in all detailed triangles Face index in mMeshDetailed faces;.">DetailedTriangleId</a>) of a ci::Ray with current <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>. This method is safe and if an exception occurs, an error dialog is automatically shown. <br /></td></tr>
<tr class="separator:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff4584fe20f552ae3b7814ecab423768 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aff4584fe20f552ae3b7814ecab423768"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>safeComputeSdf</b> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication) final</td></tr>
<tr class="separator:aff4584fe20f552ae3b7814ecab423768 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:af5e005149a8d975bcdeebc3432388572"><td class="memItemLeft" align="right" valign="top"><a id="af5e005149a8d975bcdeebc3432388572"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#af5e005149a8d975bcdeebc3432388572">paint</a> ()</td></tr>
<tr class="memdesc:af5e005149a8d975bcdeebc3432388572"><td class="mdescLeft">&#160;</td><td class="mdescRight">Do painting tick on the model. <br /></td></tr>
<tr class="separator:af5e005149a8d975bcdeebc3432388572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af329ad67cb6de39d79e50b6ad61d5de6"><td class="memItemLeft" align="right" valign="top"><a id="af329ad67cb6de39d79e50b6ad61d5de6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#af329ad67cb6de39d79e50b6ad61d5de6">stopPaint</a> ()</td></tr>
<tr class="memdesc:af329ad67cb6de39d79e50b6ad61d5de6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop painting. <br /></td></tr>
<tr class="separator:af329ad67cb6de39d79e50b6ad61d5de6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbf2edca99733e7e94fa119ad0aec9e8"><td class="memItemLeft" align="right" valign="top"><a id="adbf2edca99733e7e94fa119ad0aec9e8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateHighlight</b> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) const</td></tr>
<tr class="separator:adbf2edca99733e7e94fa119ad0aec9e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf2324919135ff372d21bd85e686da8c"><td class="memItemLeft" align="right" valign="top"><a id="acf2324919135ff372d21bd85e686da8c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#acf2324919135ff372d21bd85e686da8c">updateRay</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event)</td></tr>
<tr class="memdesc:acf2324919135ff372d21bd85e686da8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update ray and intersection data. <br /></td></tr>
<tr class="separator:acf2324919135ff372d21bd85e686da8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a14e8b45a6cab895de81f98d316764fd8"><td class="memItemLeft" align="right" valign="top"><a id="a14e8b45a6cab895de81f98d316764fd8"></a>
ci::Ray&#160;</td><td class="memItemRight" valign="bottom"><b>mLastRay</b></td></tr>
<tr class="separator:a14e8b45a6cab895de81f98d316764fd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa35b7375e5b51b71193f4ebb6a47e40a"><td class="memItemLeft" align="right" valign="top"><a id="aa35b7375e5b51b71193f4ebb6a47e40a"></a>
glm::vec3&#160;</td><td class="memItemRight" valign="bottom"><b>mLastIntersection</b></td></tr>
<tr class="separator:aa35b7375e5b51b71193f4ebb6a47e40a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3ae79e358a25a2b2c0991bb279867fa"><td class="memItemLeft" align="right" valign="top"><a id="aa3ae79e358a25a2b2c0991bb279867fa"></a>
<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>mApplication</b></td></tr>
<tr class="separator:aa3ae79e358a25a2b2c0991bb279867fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3128cd83946b4f78252d85a782b9930c"><td class="memItemLeft" align="right" valign="top"><a id="a3128cd83946b4f78252d85a782b9930c"></a>
<a class="el" href="structpepr3d_1_1_brush_settings.html">BrushSettings</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mBrushSettings</b></td></tr>
<tr class="separator:a3128cd83946b4f78252d85a782b9930c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4988a483a10b304b2334d40cf3c6439"><td class="memItemLeft" align="right" valign="top"><a id="ac4988a483a10b304b2334d40cf3c6439"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>mMaxSize</b> = 1.f</td></tr>
<tr class="separator:ac4988a483a10b304b2334d40cf3c6439"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04835f1e155d63adc659650cf372a6aa"><td class="memItemLeft" align="right" valign="top"><a id="a04835f1e155d63adc659650cf372a6aa"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mGroupCommands</b> = false</td></tr>
<tr class="separator:a04835f1e155d63adc659650cf372a6aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b228cb4c9e5e7bf60904ab74e2fc6df"><td class="memItemLeft" align="right" valign="top"><a id="a3b228cb4c9e5e7bf60904ab74e2fc6df"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a3b228cb4c9e5e7bf60904ab74e2fc6df">mPaintedAnything</a> = false</td></tr>
<tr class="memdesc:a3b228cb4c9e5e7bf60904ab74e2fc6df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Did we paint anything since selecting this tool. <br /></td></tr>
<tr class="separator:a3b228cb4c9e5e7bf60904ab74e2fc6df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d333fbd43343ebb6d2cafa60d7220f0"><td class="memItemLeft" align="right" valign="top"><a id="a0d333fbd43343ebb6d2cafa60d7220f0"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_brush.html#a0d333fbd43343ebb6d2cafa60d7220f0">mPaintsSinceDraw</a> = 0</td></tr>
<tr class="memdesc:a0d333fbd43343ebb6d2cafa60d7220f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">How many times can we run this tool without updating the screen. <br /></td></tr>
<tr class="separator:a0d333fbd43343ebb6d2cafa60d7220f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5df405cb3c238fac2e0b036a52ca59e7"><td class="memItemLeft" align="right" valign="top"><a id="a5df405cb3c238fac2e0b036a52ca59e7"></a>
const int&#160;</td><td class="memItemRight" valign="bottom"><b>MAX_PAINTS_WITHOUT_DRAW</b> = 1</td></tr>
<tr class="separator:a5df405cb3c238fac2e0b036a52ca59e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:a5972a5bd5dfabb665294af0a1e3fc2e3"><td class="memItemLeft" align="right" valign="top"><a id="a5972a5bd5dfabb665294af0a1e3fc2e3"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>SIZE_SLIDER_STEPS</b> = 100</td></tr>
<tr class="separator:a5972a5bd5dfabb665294af0a1e3fc2e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> used for painting a model while not being limited by the original triangles. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/tools/<a class="el" href="_brush_8h_source.html">Brush.h</a></li>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/tools/Brush.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacepepr3d.html">pepr3d</a></li><li class="navelem"><a class="el" href="classpepr3d_1_1_brush.html">Brush</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
